package cn.wolfcode.web.controller;

import cn.wolfcode.service.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private ILoginService loginService;

    @RequestMapping("/login")
    public String login(String username,String password){
        String result = loginService.checkLogin(username,password);
        return result ;
    }
}
